new Vue({
    el: "#categoryList",
    data: {
        userList: []    //用户列表
    },
    methods: {
        findAll: function () {
            var url = "http://localhost:8080/user/findAllUsers";
            //发送异步请求获取所有用户数据
            axios.get(url).then(response =>{
                console.log(response)
                this.userList = response.data;
            });
        }
    },
    created(){
        this.findAll();
    }
});